﻿using KayakMes.Check.Application.Input;
using KayakMes.Common.Dtos;
using KayakMes.Common.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KayakMes.Check.Application.Result
{
    /// <summary>
    /// 工序检验接口
    /// </summary>
    public interface IResultServer
    {  
        /// <summary>
        /// 添加检验结果 合格逻辑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public ApiResult<int> AddResultOK(AddResultInput input);


        /// <summary>
        /// 添加检验结果 不合格逻辑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public ApiResult<int> AddResultNO(AddResultInput input);
        /// <summary>
        /// 获取检验结果
        /// </summary>
        /// <param name="checkCode"></param>
        /// <returns></returns>
        ApiResult<CheckResullDTOs> GetResull(string checkCode);
      
    }
}
